package com.alg.pattern.builder;
/**
 * @ClassName MealBuilder
 * @Author Jiayi Zheng
 * @Date 2022/12/29 17:04
 * @Description: todo
 * @Version V1.0
 */

public class MealBuilder {

    public Meal prepareVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    public Meal prepareNonVegMeal (){
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }
}
